package com.guigu.financial.service.impl;

import com.guigu.financial.mapper.IntegralGradeMapper;
import com.guigu.financial.pojo.IntegralGrade;
import com.guigu.financial.service.IntegralGradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IntegralGradeServiceImpl implements IntegralGradeService {
    @Autowired
    IntegralGradeMapper integralGradeMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return integralGradeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(IntegralGrade record) {
        return integralGradeMapper.insert(record);
    }

    @Override
    public int insertSelective(IntegralGrade record) {
        return integralGradeMapper.insertSelective(record);
    }

    @Override
    public IntegralGrade selectByPrimaryKey(Long id) {
        return integralGradeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(IntegralGrade record) {
        return integralGradeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<IntegralGrade> findAll() {
        return integralGradeMapper.findAll();
    }

    @Override
    public int updateByPrimaryKey(IntegralGrade record) {
        return integralGradeMapper.updateByPrimaryKey(record);
    }
}
